//
//  UserDefaultsUtils.h
//  butterfly
//
//  Created by Mudmen on 2021/1/16.
//

#import <Foundation/Foundation.h>
#import "UserDefaultsDefine.h"

NS_ASSUME_NONNULL_BEGIN

#pragma mark     **********自动保存**********
@interface UserDefaultsUtils : NSObject

+ (void)saveValue:(id) value forKey:(NSString *)key;

+ (id)valueWithKey:(NSString *)key;

+ (void)removeWithKey:(NSString *)key;

+ (BOOL)boolValueWithKey:(NSString *)key;

+ (void)saveBoolValue:(BOOL)value withKey:(NSString *)key;

+ (void)print;

//检测几天内一次
+ (BOOL)saveCheckDayTime:(NSInteger)day keyNst:(NSString *)keyNst;

@end

NS_ASSUME_NONNULL_END
